<%@ include file="/common/taglibs.jsp" %>
<c:set var="goToPreviousPathUrl"><spring:url value="${previousPath}"/></c:set>
<head>
	<title><spring:message code="pickingLists.listPickingLists.header" arguments="${order.id}"/></title>
	<script type="text/javascript">
	$(function(){
		$("#goToPreviousPath").click(function(){
			location.assign("${goToPreviousPathUrl}");
		});
	});
	</script>
</head>
<p>
	<spring:message code="pickingLists.listPickingLists.header" arguments="${order.id}"/>
</p>
<table>
	<tr>
		<td>
		<display:table name="pickingLists" cellspacing="0" cellpadding="0" requestURI="" 
		   	defaultsort="1" id="pickingList" pagesize="25" class="table" export="true">
		   	
		    <display:column sortable="true" titleKey="pickingLists.listPickingLists.pickingList.id" >
		    	<a href="<spring:url value='/pickingLists/seePickingList.html'>
		    		<spring:param name="orderId" value="${order.id}" />
		    		<spring:param name="pickingListSequence" value="${pickingList.sequence}" />
		    		<spring:param name="previousPath" value="${currentPath}" />
		    		</spring:url>">${pickingList.id}</a>
		    </display:column>
		    	
		    <display:column sortable="true" titleKey="pickingLists.listPickingLists.pickingList.sequence" 
		    	property="sequence"/>
		    
		    <display:column sortable="true" titleKey="pickingLists.listPickingLists.pickingList.status">
		    	<spring:message code="${sf:getPickingListStatusMessageCode(pickingList.status)}"/>
		    </display:column>
		    
		    <display:column sortable="true" titleKey="pickingLists.listPickingLists.pickingList.createTime">
		    	<fmt:formatDate value="${pickingList.createTime}" pattern="${datePattern}"/>
		    </display:column>
		    
		    <display:column sortable="true" titleKey="pickingLists.listPickingLists.pickingList.updateTime">
		    	<fmt:formatDate value="${pickingList.updateTime}" pattern="${datePattern}"/>
		    </display:column>

		    
		    <display:setProperty name="paging.banner.item_name">
		    	<spring:message code="pickingLists.listPickingLists.item"/>
		    </display:setProperty>
		    <display:setProperty name="paging.banner.items_name">
		    	<spring:message code="pickingLists.listPickingLists.items"/>
		    </display:setProperty>
		
		    <display:setProperty name="export.excel.filename" value="PickingLists.xls"/>
		    <display:setProperty name="export.csv.filename" value="PickingLists.csv"/>
		    <display:setProperty name="export.pdf.filename" value="PickingLists.pdf"/>
		</display:table>
		</td>
	</tr>
	<tr>
		<td>
			<button id="goToPreviousPath" type="button" class="aButton"><spring:message code="pickingLists.listPickingLists.goToPreviousPath"/></button>
		</td>
	</tr>
</table>